package com.zmn.oms.business.interfaces.track;

import com.zmn.oms.model.dto.track.AddOrderTrackDTO;
import com.zmn.oms.model.dto.track.CompleteOrderTrackDTO;
import com.zmn.oms.model.dto.track.OrderTrackDTO;
import com.zmn.oms.model.entity.track.OrderTrackQuery;
import com.zmn.oms.model.vo.track.OrderTrackVO;

import java.util.List;


/**
 * 类描述：跟单
 *
 * @author heciqi
 * @date 2018/11/27 10:36
 */
@Deprecated
public interface OrderTrackBService {
    /**
     * 查询未完成跟单
     *
     * @param orderId
     * @return
     */
    List<OrderTrackVO> listUnCompleteOrderTrackByOrderId(Long orderId, Long workId);

    /**
     * 数量查询
     *
     * @param query
     * @return
     */
    Integer countByQuery(OrderTrackQuery query);

    /**
     * 新增工程师跟单
     *
     * @param addOrderTrackDTO
     * @return
     */
    void insertMasterTrack(AddOrderTrackDTO addOrderTrackDTO);

    /**
     * 新增后台用户跟单
     *
     * @param addOrderTrackDTO
     * @return
     */
    void insertUserTrack(AddOrderTrackDTO addOrderTrackDTO);

    /**
     * 修改跟单结果
     *
     * @param completeOrderTrackDTO
     * @return
     */
    void updateResultTrack(CompleteOrderTrackDTO completeOrderTrackDTO);

    /**
     * 操作跟单
     *
     * @param orderTrackDTO
     */
    void updateTrack(OrderTrackDTO orderTrackDTO);

    /**
     * 完成所有跟单并塞日志
     * @param orderId
     * @param workId
     * @param resultContent
     */
    void completeAllTrack(Long orderId, Long workId, String resultContent);
}
